package com.xxs.controller.shop;

import com.jfinal.core.Controller;
import com.jfinal.kit.PropKit;

/**
 * Created with IntelliJ IDEA.
 */
public class IndexController extends Controller {
	
    public void index(){
        setAttr("actionUrl", "/");
        setAttr("action", "home");
        System.out.println("000000000000000000:"+PropKit.use("config.txt").get("db.jdbcUrl"));
        render("/common/index.html");
    }
    public void leaveMsg(){
        render("/common/leaveMsg.html");
    }
    public void regist(){
        render("/user/regist.html");
    }
    public void toLogin(){
    	setAttr("msg", "使用邮箱注册作为登陆名");
    	setAttr("color", "");
        render("/user/login.html");
    }
    public void test(){
    	render("/common/test.html");
    }
}
